<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./9466云专题 iconfont/font/iconfont.css">
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        header{
            height: 80px;
            line-height: 80px;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            background-color: rgb(38, 139, 227);
            color: white;
        }
        section{
            display: flex;
        }
        section .nav{
            background-color: rgb(38, 139, 227);
            width: 150px;
        }
        section .nav ul li{
            padding-left: 20px;
            line-height: 50px;
            list-style: none;
            color: #ccc;
        }
        section .nav ul .active{
            color: white;
            background-color: rgb(91, 118, 177);
        }
        section .content{
            flex: 1;
            padding: 40px;
            line-height: 60px;
        }
        section .content .find input{
            width: 280px;
            height: 38px;
            border: 1px solid #ccc;
            border-radius: 38px;
            padding-left: 20px;
            margin-right: 10px;
        }
        section .content button{
            padding: 0 20px;
            height: 38px;
            border: none;
            background-color: rgb(55, 202, 48);
            border-radius: 10px;
            color: white;
        }
        section .content table{
            width: 70%;
            text-align: center;
            line-height: 40px;
        }
        section .content table thead tr th:first-child,
        section .content table tbody tr td:first-child{
            text-align: left;
        }
        section .content table .backgr{
            padding: 0 10px;
            color: white;
            border-radius: 10px;
            display: inline-block;
            height: 25px;
            line-height: 25px;
            background-color: rgb(55, 202, 48);
        }
        section .content .change{
            text-align: center;
        }
        section .content .change span{
            border-radius: 5px;
            border: 1px solid #ccc;
            padding: 5px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <header>
        <div class="logo">9466云专题</div>
        <div class="user"><span class="iconfont icon-yonghu"></span>龙猫（9466云专题）</div>
    </header>
    <section>
        <div class="nav">
            <ul>
                <li><span class="iconfont icon-home"></span>  首页</li>
                <li><span class="iconfont icon-zhuantiguanli"></span>  专题</li>
                <li class="active"><span class="iconfont icon-yonhu"></span>  用户</li>
                <li><span class="iconfont icon-shezhi"></span>  设置</li>
                <li><span class="iconfont icon-xitongrizhi"></span>  日志</li>
            </ul>
        </div>
        <div class="content">
            <div class="find">
                <input type="text" placeholder="搜索用户">
                <button>搜索</button>
            </div>
            <button class="add"><span class="iconfont icon-tianjia"></span> 添加用户</button>
            <table>
                <thead>
                    <tr>
                        <th>邮箱（账户）</th>
                        <th>姓名</th>
                        <th>电话</th>
                        <th>所属组</th>
                        <th>管理员</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
            <div class="change">
                <span class="prev">上一页</span>
                &emsp;
                <span class="next">下一页</span>
            </div>
        </div>
    </section>
</body>
</html>
<script src="./mock.js"></script>
<script src="./data.js"></script>
<script src="./ajax.js"></script>
<script>

    document.querySelector('tbody').innerHTML = str;

</script>